/*
   Copyright (C) 2022 Ivan Polyakov

   This file is part of fltube.

   fltube is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   fltube is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#include "NavBar.hxx"

using namespace fltube;

NavBar::NavBar(int x, int y, int w, int h)
  : Fl_Group(x, y, w, h)
{
    begin();
    {
        sbox = new SearchBox(x + w / 3, y + navbar_vpad,
            w / 3, h - navbar_vpad * 2);
    }
    end();
}
